package dkzcm.club.oss.controller;

import dkzcm.club.oss.service.FileService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @desc:
 * @author: xk
 * @version: 1.0
 * Create by 2025/1/2 21:23
 */

@RestController
public class FileController {

    @Resource
    private FileService fileService;


    @RequestMapping("/testGetAllBuckets")
    public String testGetAllBuckets() throws Exception {
        List<String> allBucket = fileService.getAllBucket();
        return allBucket.get(0);
    }
}
